﻿using WorkLogger.Client.Services;

namespace WorkLogger.Client.Commands {
	public class ResumeWorkingCommand : ICommand {
		private readonly LunchCheckService lunchCheckService;
		private readonly StartDayCheckService startDayCheckService;

		public ResumeWorkingCommand(LunchCheckService lunchCheckService,
		                            StartDayCheckService startDayCheckService) {
			this.lunchCheckService = lunchCheckService;
			this.startDayCheckService = startDayCheckService;
		}

		public void Execute() {
			startDayCheckService.Check();
			lunchCheckService.Check();
		}
	}
}